//1.定义存储token的key
const key='vant-mobile-token-xxx'


//获取token
export function getToken() {
  return localStorage.getItem(key)
}


//存储token
export function setToken(newToken) {
  localStorage.setItem(key,newToken)
}


//清空token
export function delToken() {
  localStorage.setItem(key)
}